package usb;
import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入数字1");
        int num1=sc.nextInt();
        System.out.println("请输入数字2");
        int num2=sc.nextInt();
        System.out.println("请输入数字3");
        int num3 =sc.nextInt();
        System.out.println("最大数为");
        if (num1> num2){
            if (num1> num3){
                System.out.println(num1);
            }else if (num3 >num1){
                System.out.println(num3);
            }
        }else if (num2 >num1){
            if (num3> num2){
                System.out.println(num3);
            }else if (num2 >num3){
                System.out.println(num2);
            }
        }
        }
}